package com.exam.api.modules.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.api.common.dto.KeywordPageDTO;
import com.exam.api.modules.order.domain.TblOrder;
import com.exam.api.modules.order.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lingma
 * @description 针对表【tbl_order(订单主表（支持选座+考试场景）)】的数据库操作Mapper
 */
@Mapper
public interface TblOrderMapper extends BaseMapper<TblOrder> {

    public List<OrderVO> selectStudentList(@Param("skuId") Long skuId, @Param("itemId") Long itemId, @Param("classNumberId") Long classNumberId);
    public IPage<OrderVO> selectOrderList(Page<TblOrder> page, @Param("dto") KeywordPageDTO dto);
}
